package scu.util.logger;
import java.util.logging.*;
import java.io.*;

public final class SimpleLogger {
	private SimpleLogger() {};
	private static final Logger LOGGER = Logger.getLogger("Exception Info");
	private static final StringWriter TRACE = new StringWriter();
	private static final PrintWriter PRINTWRITER = new PrintWriter(TRACE);
	public static void logException(final Exception exception) {
		exception.printStackTrace(PRINTWRITER);
		LOGGER.severe(TRACE.toString());
	}
	
	public static void logLoginInformation(final String loginInformation) {
		LOGGER.info(loginInformation);
	}
}
